﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _80Action
{
    class Program
    {
        public delegate void MyDe();


        static void Main(string[] args)
        {
            Action action = new Action(Test);
            action();
           
            Action<int> a1 = new Action<int>(Test);
            a1(10);

            Action<int, string> a2 = new Action<int, string>(Test);
            a2(20, "abc");


            Console.ReadKey();
        }

        static void Test()
        {
            Console.WriteLine("----------");
        }

        static void Test(int a)
        {
            Console.WriteLine("----------" + a);
        }

        static void Test(int a,string b)
        {
            Console.WriteLine("----------" + a + b);
        }






    }
        


    
}
